let name, sex, height, age

alert("Welcome to play this game. Please input several personal information. The computer will generate your personal info list.")
name=prompt("Please input your name.")
age=prompt("Please input your age.")
height=prompt("Please input your height.")
sex=prompt("Please input your sex. (male or female)")

let check=confirm("Your personal information list has been genearated. Ready to check?")

if(check){
    alert("Name: "+name+"\n"+
    "Sex: "+sex+"\n"+
    "Age: "+age+"\n"+
    "Height: "+height+"\n"
    )
}